<template>
  <div class="empty-state">
    <div class="empty-icon">
      <FileSearch :size="48" />
    </div>
    <p class="empty-text">{{ message || '暂无文件' }}</p>
  </div>
</template>

<script setup lang="ts">
import { FileSearch } from 'lucide-vue-next'

defineProps({
  message: {
    type: String,
    default: '暂无文件'
  }
})
</script>

<style scoped>
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  text-align: center;
  background-color: var(--theme-bg-secondary);
  border-radius: 8px;
  flex: 1;
  min-height: 400px;
}

.empty-icon {
  color: var(--theme-text-tertiary);
  opacity: 0.5;
  margin-bottom: 16px;
}

.empty-text {
  color: var(--theme-text-secondary);
  font-size: 14px;
}
</style>
